/*!***************************************************
 * @file: func_app.h
 * @brief: 好友等功能的逻辑应用代码头文件
 * @author: ITHAO 
 * @date: 2018.12.9
 * @note: 
 ****************************************************/
#ifndef __FUNC_APP__
#define __FUNC_APP__

#include "client_management.h"
#include "comm_protocol_core.h"

enum {
    FUNCAPP_OWNERACCOUNT_NOT_EXIST = 2,
    FUNCAPP_FRIENDACCOUNT_NOT_EXIST,
    FUNCAPP_EXCEED_FRIEND_NUM,
    FUNCAPP_IS_FRIEND_ALREADY,
    FUNCAPP_NOT_FRIEND,
    FUNCAPP_NO_OWNER_INFO,
};

#define FUNCAPP_PARAM_NULL_ERR      1

extern void friend_app(struct data_packet data_packet,
                int clientfd, struct online_user *online_user);
extern void chat_app(struct data_packet data_packet,
                int clientfd, struct online_user *online_user);

#endif
